/*
 * @Author: Leo.wang wanglizhigs@163.com
 * @Date: 2024-05-06 08:47:12
 * @LastEditors: Leo.wang wanglizhigs@163.com
 * @LastEditTime: 2024-05-13 23:10:07
 * @FilePath: /gptfront-dev/src/api/instruction.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import request from '@/utils/request'

export function createInstruction(data) {
    return request({
        url: '/api/gptInstructions',
        method: 'POST',
        data,
    })
}

export function getInstruction(data) {
    return request({
        url: '/api/gptInstructions/detail',
        data,
    })
}

export function updateInstruction(data) {
    return request({
        url: '/api/gptInstructions',
        method: 'POST',
        data,
    })
}
